package com.wang.domain.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

@Getter
public enum UserSexEnum {
    // 男
    MAN(0,"男"),
    // 女
    WOMAN(1,"女");

    @EnumValue
    private final Integer code;
    private final String name;

    UserSexEnum(final Integer code, final String name) {
        this.code = code;
        this.name = name;
    }
}
